package com.lanou3g.service;

import java.util.List;

import com.lanou3g.bean.Person;
import com.lanou3g.util.Result;

public interface PersonService {

	//获取所有的人员信息
	public Result getAllPersons(Integer page,Integer limit, Person person);
	
	//根据姓名查询人员信息
	public Result checkPersonByName(String name);
	
	//添加人员
	public Result insertPerson(Person person);
	
	//根据id查询人员
	public Person getPersonById(Integer id);
	
	//更新人员信息
	public Result updatePerson(Person person);
	
	//根据id删除人员
	public Result deletePersonById(Integer id);
	
	//根据公寓id查询人员
	public List<Person> getPersonsByFlatsId(Integer id);
}
